package com.frank.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frank.subject.infra.basic.entity.SubjectLabel;
import com.frank.subject.infra.basic.mapper.SubjectLabelMapper;
import com.frank.subject.infra.basic.service.SubjectLabelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 题目标签表(SubjectLabel)表服务实现类
 *
 * @author makejava
 * @since 2024-01-23 14:15:25
 */
@Service("subjectLabelService")
public class SubjectLabelServiceImpl extends ServiceImpl<SubjectLabelMapper, SubjectLabel> implements SubjectLabelService {

    private final SubjectLabelMapper subjectLabelMapper;

    public SubjectLabelServiceImpl(SubjectLabelMapper subjectLabelMapper) {
        this.subjectLabelMapper = subjectLabelMapper;
    }

    @Override
    public List<SubjectLabel> queryBatchLabelByIds(List<Long> labelIds) {
        return this.subjectLabelMapper.queryBatchLabelByIds(labelIds);
    }

    @Override
    public List<SubjectLabel> queryListByCondition(SubjectLabel subjectLabel) {
        return this.subjectLabelMapper.queryListByCondition(subjectLabel);
    }
}
